package StudyCode.summary.Basic.console;

import java.io.Console;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ReadPassword {
	public static void main(String args[]) {
		Console c = System.console();
		char[] oldPassword = c.readPassword("Please input password: ");
		System.out.println("password is " + new String(oldPassword));
	}

}
